package com.freecloud.javabasics.design.bridging.message;

/**
 * @Author: maomao
 * @Date: 2020-03-08 21:57
 */
public abstract class AbstractMessage {
    private IMessage message;


    protected AbstractMessage(IMessage message) {
        this.message = message;
    }

    public void sendMessage(String msg,String toUser){
        message.send(msg,toUser);
    }
}
